<template>
  <div>
    <!-- 权限点数据展示 -->
    <el-tree
      ref="refTree"
      :data="list"
      :props="{ label: 'name' }"
      default-expand-all
      :show-checkbox="true"
      :check-strictly="true"
      node-key="id"
    />
    <div style="margin-top: 20px; text-align: right">
      <el-button type="primary" @click="hSubmit">确定</el-button>
      <el-button @click="hCancel">取消</el-button>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {
      list: [] // 存储权限数据
    }
  },
  methods: {
    hSubmit() {},
    hCancel() {
      // 通过父组件去关闭弹层
      this.$emit('close')
    }
  }
}
</script>
